/**
 * @ author: 汪孟苹
 */
define(["jquery","template","scprit/followup/template/lostFollowupManager/periodPatient.tpl.js"],function($,template,tpl){
	var periodPatientData = {};
	var drawfollowupWarn = function(data){
		return template("tpl_followupWarn_form",data);
	}
	var followupWarnData = function(list){
		var arr = [];
		if(list){
			for(var i=0;i<list.length;i++){
				arr[i] = list[i]; 
			}
		}
		return arr;
	}
	periodPatientData.followupWarnInit = function(options){
		var data = {
			addressList: followupWarnData(options.list.addressList),
            outScheduleList: followupWarnData(options.list.outScheduleList),
		}
		options.dom.html(tpl.followupWarnInit());
		var h = drawfollowupWarn(data);
		options.dom.html(h);
	}
	return periodPatientData;
});